package com.atguigu.mediator2;

public class Client {
	
	public static void main(String[] args) {
		MediatorExt mediatorExt = new MediatorExt();
		
		//创建2个同事类
		ConcreteColleague1 colleague1 = new ConcreteColleague1();
		ConcreteColleague2 colleague2 = new ConcreteColleague2();
		
		mediatorExt.register(colleague1);
		mediatorExt.register(colleague2);
		
		
		colleague1.send("张三出业绩100W");
		
		System.out.println("===========================");
		
		colleague2.send("李四  也出业绩50W");
	}
}
